/**
 * Copyright 2015-2016 eyaomall.cn
 * All rights reserved.
 *
 * @project
 * @author yuhuafeng
 * @version 1.0
 * @date 2016-01-06
 */
package com.eyaomall.wxmall.service;

import com.eyaomall.wxmall.model.po.Collect;
import com.lycheeframework.core.cmp.kit.PageHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;

/**
 * 收藏接口
 * @author yuhuafeng
 *
 */
public interface CollectService {
	
	/**
	 * 增加收藏
	 */
	public Integer create(Collect collect);
	
	/**
	 * 返会我的收藏分页
	 */
	public Pages<?> page(Collect collect, PageHTTPObject object);
	
	
	/**
	 * 删除我的收藏
	 */
	public boolean deleteByMemberId(int id);
	
	/**
	 * 根据商品id和会员id返回收藏信息,若不存在返回null
	 */
	public Collect queryByGoodsIDAndMemberId(Integer goodsId,Integer memberid);

	/**
	 * 批量删除收藏
	 * @param ids
	 * @return
	 */
	public boolean bitchdelete(String ids);
}
